package com.spsoft.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spsoft.system.entity.NvatRevmapinvoitems;
import com.spsoft.system.mapper.NvatRevmapinvoitemsMapper;
import com.spsoft.system.service.NvatRevmapinvoitemsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * ???????????????????? 服务实现类
 * </p>
 *
 * @author dingchengyun
 * @since 2024-03-11
 */
@Service
public class NvatRevmapinvoitemsServiceImpl extends ServiceImpl<NvatRevmapinvoitemsMapper, NvatRevmapinvoitems> implements NvatRevmapinvoitemsService {
    @Override
    public int deleteDetailsItemRevByOidIds(List<Long> oidIds) {
        LambdaQueryWrapper<NvatRevmapinvoitems> wrapper = new LambdaQueryWrapper<>();
        wrapper.in(NvatRevmapinvoitems::getOidid, oidIds);
        return this.baseMapper.delete(wrapper);
    }

}
